﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;
using DTO;

namespace DAO
{
    public class PhimChieuDAO
    {
        DataProvider dp = new DataProvider();
        public DataTable LayDanhSachMaPhimDangChieu()
        {
            return dp.SqlExcuteQuery("sp_LayDanhSachMaPhimDangChieu");
        }
        public DataTable LayDanhSachMaPhimSapChieu()
        {
            return dp.SqlExcuteQuery("sp_LayDanhSachMaPhimSapChieu");
        }

          public DataTable LayDanhSachMaPhimDaChieu()
        {
            return dp.SqlExcuteQuery("sp_LayDanhSachMaPhimDaChieu");
        }

        public DataTable LayThongTinPhimTheoMa(string maPhim)
        {
            SqlParameter param = new SqlParameter("@maPhim",maPhim);
            return dp.SqlExcuteQuery("sp_LayThongTinPhimTheoMaPhim",param);
        }

       
    }
}
